export default {
  setToken(state, params) {
    sessionStorage.setItem('zxgToken', params.token)
    sessionStorage.setItem('isLogin', true)
    state.token = params.token
    state.isLogin = true
  },
  setUserInfo(state, params) {
    state.userInfo = params
  },
  setCarList(state, params) {
    state.carList = params
  },
  setRecommendList(state, params) {
    state.recommendList = params
  },
  setBadgeCount(state, params) {
    state.badgeCount = params
  },
  setAllChecked(state, params) {
    state.allChecked = params
  },
}
